""" 
CSDN : heart_6662
PYTHON amateur   
"""
a = [[1,2,3],[4,5,6],[7,8,9]]
sum_ = 0
for i in range(0,3):
    sum_ += a[i][i]
print(sum_)